import demo from './demo';
import { MqjImg, MqjVideo, Notfound } from '@evam/components';

const routes = [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '企业空间',
      hidden: true,
      moduleName: 'login',
    },
  },
  {
    path: '/rt_mqjimg',
    name: 'rt_mqjimg',
    meta: {
      title: '富文本上传图片',
      hidden: true,
    },
    component: MqjImg,
  },
  {
    path: '/rt_mqjvideo',
    name: 'rt_mqjvideo',
    meta: {
      title: '富文本上传视频',
      hidden: true,
    },
    component: MqjVideo,
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    meta: {},
    component: Notfound,
  },
];

if (import.meta.env.MODE == 'development') {
  routes.unshift(demo);
}

export default routes;
